trigger UpdateEx_Id on About_me__c (before insert) {

if(trigger.isBefore && trigger.isinsert)
    {
    Set<Id> i=new Set<Id>(); 
        for(About_me__c about: trigger.new)
        {
        
               i.add(about.Id);
            //about.Ex_Id__c=about.Name;
            
        
        }
        map<id,About_me__c> accMap = new map<Id,About_me__c>([select id, name from About_me__c where id in:i]);

        for(About_me__c about: trigger.new)
        {
        
       
            about.Ex_Id__c=accMap.get(about.Id).Id;
             system.debug(about.Ex_Id__c);
        }
        
    }


}